import options from './code.js'
let str = ''
export const toCode = (code, area) => {
  let op = area || options
  op.forEach((item, index) => {
    if (Number(item.code) === code) {
      str = item.name
    }
    if (item.children) {
      toCode(code, item.children)
    }
  })
  return str
}
